package com.ruoyi.buss.task.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.task.mapper.DataPlanTaskRelationMapper;
import com.ruoyi.buss.task.domain.DataPlanTaskRelation;
import com.ruoyi.buss.task.service.IDataPlanTaskRelationService;

/**
 * 总行营销计划关联Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class DataPlanTaskRelationServiceImpl implements IDataPlanTaskRelationService 
{
    @Autowired
    private DataPlanTaskRelationMapper dataPlanTaskRelationMapper;

    /**
     * 查询总行营销计划关联
     * 
     * @param taskId 总行营销计划关联ID
     * @return 总行营销计划关联
     */
    @Override
    public DataPlanTaskRelation selectDataPlanTaskRelationById(String taskId)
    {
        return dataPlanTaskRelationMapper.selectDataPlanTaskRelationById(taskId);
    }

    /**
     * 查询总行营销计划关联列表
     * 
     * @param dataPlanTaskRelation 总行营销计划关联
     * @return 总行营销计划关联
     */
    @Override
    public List<DataPlanTaskRelation> selectDataPlanTaskRelationList(DataPlanTaskRelation dataPlanTaskRelation)
    {
        return dataPlanTaskRelationMapper.selectDataPlanTaskRelationList(dataPlanTaskRelation);
    }

    /**
     * 新增总行营销计划关联
     * 
     * @param dataPlanTaskRelation 总行营销计划关联
     * @return 结果
     */
    @Override
    public int insertDataPlanTaskRelation(DataPlanTaskRelation dataPlanTaskRelation)
    {
        return dataPlanTaskRelationMapper.insertDataPlanTaskRelation(dataPlanTaskRelation);
    }

    /**
     * 修改总行营销计划关联
     * 
     * @param dataPlanTaskRelation 总行营销计划关联
     * @return 结果
     */
    @Override
    public int updateDataPlanTaskRelation(DataPlanTaskRelation dataPlanTaskRelation)
    {
        return dataPlanTaskRelationMapper.updateDataPlanTaskRelation(dataPlanTaskRelation);
    }

    /**
     * 批量删除总行营销计划关联
     * 
     * @param taskIds 需要删除的总行营销计划关联ID
     * @return 结果
     */
    @Override
    public int deleteDataPlanTaskRelationByIds(String[] taskIds)
    {
        return dataPlanTaskRelationMapper.deleteDataPlanTaskRelationByIds(taskIds);
    }

    /**
     * 删除总行营销计划关联信息
     * 
     * @param taskId 总行营销计划关联ID
     * @return 结果
     */
    @Override
    public int deleteDataPlanTaskRelationById(String taskId)
    {
        return dataPlanTaskRelationMapper.deleteDataPlanTaskRelationById(taskId);
    }
}
